#include <windows.h>
#include "service.h"

#define NT_SERVICE_NAME L"NtService"

int
main(
    int argc,
    WCHAR ** argv
    )
    
/*++

    Routine Description:

    This is the entry point into the application.

    Arguments:

    DWORD argc - Argument count
    WCHAR ** argv - Argument list

    Return value:

        0 - Success.

--*/

{
    int Error = 0;

    //
    // We just need only one service
    //
    
    SERVICE_TABLE_ENTRY DispatchTable[] =
    {
        { NT_SERVICE_NAME, (LPSERVICE_MAIN_FUNCTION)NtServiceMain},//FGSchedules
        { NULL, NULL},
    };

    //
    // We should connect the service control manager 
    //
    if (!StartServiceCtrlDispatcher(DispatchTable))
    {
        //ERROR_REPORT(ERROR_FAILED_SERVICE_CONTROLLER_CONNECT);
    }
    
    if (argc == 2 && (argv[1])[0] == L'-' && (argv[1])[1] == L'c')
    {
    }

    return Error;
}
